
import {BrowserRouter as Router,Route,Link} from 'react-router-dom';

//导入Home/Edit/Vote/Apply/Test/Epidemic

import Home from './pages/Home'
import Edit from './pages/Edit'
import Vote from './pages/Vote'
import Apply from './pages/Apply'
import Test from './pages/Test'
// import Tmp from './pages/Tmp'
import Epidemic from './pages/Epidemic'
import EditableTable from './components/index'
import SearchResult from './components/searchpage'
import Fill from './pages/Fill/index'
import Mainpage from './pages/Mainpage'
// import Check from './pages/Check/check'
import Login from './pages/Login/login'
import Register from './pages/Login/regist';
import DeleteRecord from './components/DeleteRecord'
import DeleteSearch from "./components/deletesearch"
import Preview from './pages/preview/index'
import Content from './pages/content/index'
import LoginFill from './pages/Fill/login'
import RegisterFill from './pages/Fill/regist'



function App() {

  return (
    <Router>
      <div className="App">
        <Route exact path="/register" component={Register}></Route>
        <Route exact path="/" component={Login}></Route>
        <Route exact path="/home" component={EditableTable}></Route>
        <Route path="/add" component={Home}></Route>
        <Route path="/search" component={SearchResult}></Route>
        <Route path="/deletesearch" component={DeleteSearch}></Route>
        <Route path="/fill" component={Fill}></Route>
        {/* <Route path="/check" component={Check}></Route> */}
        <Route path="/mainpage" component={Mainpage}></Route>
        <Route path="/edit" component={Edit}></Route>
        <Route path="/vote" component={Vote}></Route>
        <Route path="/apply" component={Apply}></Route>
        <Route path="/test" component={Test}></Route>
        {/* <Route path="/tmp" component={Tmp}></Route> */}
        <Route path="/epidemic" component={Epidemic}></Route>
        <Route path="/delete" component={DeleteRecord}></Route>
        <Route path="/preview" component={Preview}></Route>
        <Route path="/content" component={Content}></Route>
        <Route path="/loginfill" component={LoginFill}></Route>
        <Route exact path="/registerfill" component={RegisterFill}></Route>




      </div>
    </Router>
  );
}



export default App;
